<?php
class GameGetBuildingItemsAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT
    );

    /**
     * 获取建筑背包
     *
     * @param int $userId
     * @return SzResponse
     */
    public function execute($userId)
    {
        return $this->buildResponse(array(
            'buildingItems' => ItemService::get()->getBuildingItems($userId)
        ));
    }
}